<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!-- saved from url=(0070)http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000078.html -->
<html>
 <head>
   <base href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000078.html"/>
   <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
   <title> [OpenJDK 2D-Dev] Open Source rasterizer
   </title>
   <link rel="Index" href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/index.html">
   <link rel="made" href="mailto:2d-dev%40openjdk.java.net?Subject=%5BOpenJDK%202D-Dev%5D%20Open%20Source%20rasterizer&In-Reply-To=">
   <meta name="robots" content="index,nofollow">
   
   <link rel="Previous" href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000084.html">
   <link rel="Next" href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000081.html">
 </head>
 <body bgcolor="#ffffff">
   <h1>[OpenJDK 2D-Dev] Open Source rasterizer</h1>
    <b>Jim Graham</b> 
    <a href="mailto:2d-dev%40openjdk.java.net?Subject=%5BOpenJDK%202D-Dev%5D%20Open%20Source%20rasterizer&In-Reply-To=" title="[OpenJDK 2D-Dev] Open Source rasterizer">Jim.A.Graham at Sun.COM
       </a><br>
    <i>Wed Oct  3 17:29:31 PDT 2007</i>
    <p></p><ul>
        <li>Previous message: <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000084.html">[OpenJDK 2D-Dev] Remove warnings in sun.java2d
</a></li>
        <li>Next message: <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000081.html">[OpenJDK 2D-Dev] Imaging and graphics job opening at Sun.
</a></li>
         <li> <b>Messages sorted by:</b> 
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/date.html#78">[ date ]</a>
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/thread.html#78">[ thread ]</a>
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/subject.html#78">[ subject ]</a>
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/author.html#78">[ author ]</a>
         </li>
       </ul>
    <hr>  
<!--beginarticle-->
<pre style="white-space: pre-wrap">As Roman mentioned earlier, I've culled together some code from another 
Java project into a replacement for the encumbered Ductus renderer in 
the production JDK.

This rasterizer is built from all of our own code so we can release it 
as part of the Open JDK project.

Unfortunately, it isn't as fast as the existing Ductus binary plugs so 
some work will be needed to improve its speed, but it covers the entire 
API that we used to rely on Ductus for so we've removed the binary plugs 
from the Open Source version.  Here are some known issues with the new 
rasterizer that need to be addressed:

- Performance, performance, performance
- It uses fixed point without much overflow detection/handling
- It does not honor the STROKE_CONTROL hints so thin lines are vague

In terms of performance, someone who is good with a code analyzer could 
have a field day, but here are some ideas that would be reasonably easy 
to investigate to see if they make a noticeable improvement in the 
performance:

- reusing the Renderer and associated objects vs. recreating them
- A better storage format for the PiscesCache for generating tiles
- Tighter integration between the pixelization code and the cache
- use floats in the line widening which should go faster on desktops

I'm attaching a zip file of the sources for a sneak peek.  These sources 
should appear in the public repository in a few days (just barely 
beating the temporary freeze for the Mercurial transition).

I'd recommend anyone interested in playing with this code to join the 
"Graphics-Rasterizer-Dev" list on openjdk:

<a href="http://mail.openjdk.java.net/mailman/listinfo/graphics-rasterizer-dev">http://mail.openjdk.java.net/mailman/listinfo/graphics-rasterizer-dev</a>

			...jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pisces.zip
Type: application/zip
Size: 32915 bytes
Desc: not available
Url : <a href="http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20071003/f2d8998c/pisces.zip">http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20071003/f2d8998c/pisces.zip</a> 
</pre>

<!--endarticle-->
    <hr>
    <p></p><ul>
        <!--threads-->
	<li>Previous message: <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000084.html">[OpenJDK 2D-Dev] Remove warnings in sun.java2d
</a></li>
	<li>Next message: <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/000081.html">[OpenJDK 2D-Dev] Imaging and graphics job opening at Sun.
</a></li>
         <li> <b>Messages sorted by:</b> 
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/date.html#78">[ date ]</a>
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/thread.html#78">[ thread ]</a>
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/subject.html#78">[ subject ]</a>
              <a href="http://mail.openjdk.java.net/pipermail/2d-dev/2007-October/author.html#78">[ author ]</a>
         </li>
       </ul>

<hr>
<a href="http://mail.openjdk.java.net/mailman/listinfo/2d-dev">More information about the 2d-dev
mailing list</a><br>

</body></html>
